home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 7 / FM Towns Free Software Collection 7.iso / t_os / numcro / repaint.c < prev   
Encoding:
C/C++ Source or Header  |  1993-11-30  |  383 b   |  26 lines

  1. #include "COMMON.H"
  2.  
  3. repaint(int no , char tx[2])
  4. {
  5. int i,j;
  6.  
  7.     for(i=0 ; i<line ; i++)
  8.        {
  9.        for(j=0 ; j<colm ; j++)
  10.           {
  11.           if (number[i][j]==no)
  12.          {
  13.          ncword[i][j][0]=tx[0];
  14.          ncword[i][j][1]=tx[1];
  15.          locate(i,j);
  16.          if (number[i][j])
  17.             {
  18.             putchar(tx[0]);
  19.             putchar(tx[1]);
  20.             }
  21.          else sprint("■");
  22.          }
  23.           }
  24.        }
  25. }
  26.